home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 February / EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso / progs / editor / frexxed / fpl / changefact.fpl.readme < prev    next >
Text File  |  1995-07-19  |  2KB  |  59 lines

  1. ############################################
  2. File:        ChangeFACT.FPL
  3. Author:        Carsten Orthbandt
  4. Email:        s6357@fb1.fhtw-berlin.de
  5. Short:        Change your FACT by GUI.
  6. Version:    1.0
  7. Date:        14.7.95
  8. Local settings:
  9. Global settings:
  10. Keysequence:
  11. Type:        Requester
  12. Prereq:        FrexxEd 1.7, FPL 12
  13. ############################################
  14.  
  15. FUNCTION
  16.  This gives you a small GUI to change the FACT.
  17.  After running this script you have the additional commands FACTChangeRequest() and
  18.  FACTAttrWindow().
  19.  
  20.  void FACTChangeRequest();
  21.   takes no arguments and gives you a list of all (including the specials -5..-1)
  22.   FACT entries. It4s initial state is the character the cursor is currrently on.
  23.   After selection FACTAttrWindow() is called. When done with the window you are
  24.   presented the list again. The list display will take some time because I have
  25.   to build a list of 261 elements. This is rather slow since there is no FPL
  26.   compiler yet. (Heard that, Daniel ? ;)
  27.  
  28.  void FACTAttrWindow( int );
  29.   takes an integer (character number) and displays a window with all (AFAIK) FACT
  30.   options currently available. The window is initialized to the current settings.
  31.   Now you may change FACT attributes:
  32.     Display string  - the string displayed every time this char occurs in
  33.                           your text
  34.     Type            - Type, can be None,Word,Space,Symbol,Tab or Newline
  35.     Case            - Case, can be None,Upper or Lower
  36.      Opposite       - If char is upper case, this is the corresponding lower one
  37.                       and vice versa.
  38.     Delimiter       - Delimiter type, can be None,Opening or Closing. This is
  39.                       useful for brackets.
  40.      Opposite       - For opening delimiters this is the closing one, e.g. editing
  41.                       the char '(', one should set delimiter type to opening and
  42.                       the opposite to ')'.
  43.  
  44.   A useful menu item could be:
  45.    MenuAdd("i","ChangeFact","FACTAttrWindow(GetChar());");
  46.   to change the FACT attributes of the current character.
  47.  
  48.   Since the char class attributes are mutually exclusive, I chose cycle gadgets.
  49.   There are quite much states for a cycle gadget, so I recommend using somthing
  50.   like Cycle2Menu.
  51.  
  52. BUGS
  53.  This stuff does NOT support the local FACT feature I requested that often because
  54.  some FACT functions (e.g. FACTString()) don4t support it.
  55.  
  56.  
  57. SEE ALSO
  58.  Any FACT related chapters in FrexxEd.guide and Functions.guide
  59.